const Mock = require('mockjs')

const data = Mock.mock({
  orgData: [{
    orgId: 0,
    orgParentId: '@id',
    orgName: '河钢集团',
    orgFullPath: '@cname',
    children: [{
      orgId: 1,
      orgParentId: '@id',
      orgName: '@cname',
      orgFullPath: '@cname',
      children: [{
        orgId: 2,
        orgParentId: '@id',
        orgName: '@cname',
        orgFullPath: '@cname'
      }]
    }]
  }]
})
module.exports = [{
  url: '/permission/managerGroup/getParentGroupDataScope',
  type: 'get',
  response: (config) => {
    const items = data.orgData
    return {
      code: '00000',
      success: Boolean(),
      message: '@word(5)',
      data: items
    }
  }
}
]
